<%@ include file="/html/common/init.jsp" %>
<%@page import="com.liferay.portal.kernel.util.WebKeys" %>
<%
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);

ShoppingItem item = (ShoppingItem)row.getObject();

PortletURL url1 = renderResponse.createRenderURL();
url1.setParameter("itemId", String.valueOf(item.getItemId()));
url1.setParameter("jspPage", "/html/item/edit_item.jsp");
%>


<liferay-ui:icon-menu>
		<portlet:renderURL var="editURL">
			<portlet:param name="cmd" value="edit" />
			<portlet:param name="itemId" value="<%= String.valueOf(item.getItemId()) %>" />
		</portlet:renderURL>

		<liferay-ui:icon image="edit" url="<%= editURL.toString() %>"/>

	

		<portlet:actionURL name="addProcess" var="deleteURL">
			<portlet:param name="<%= Constants.CMD %>" value="<%= Constants.DELETE %>" />
			<portlet:param name="redirect" value="<%= currentURL %>" />
			<portlet:param name="itemId" value="<%= String.valueOf(item.getItemId()) %>" />
		</portlet:actionURL>

		<liferay-ui:icon-delete url="<%= deleteURL %>" />

</liferay-ui:icon-menu>
